/*********************************************************
 * Copyright 2005-2007 Li Jie.<br />
 * Distributed under the GNU General Public License 2.0
 *
 * Authors: Li Jie (qiezi) cpunion@gmail.com
 * Date: March 31, 2007
 * Version: 1.0
 *********************************************************/

module test;

import std.stdio;
import std.c.string;
import std.string;
import bdb.db;
import bdb.c.db;


/****************************
 * test program
 ****************************/
void main()
{
	Environment env = new Environment;
	env.open(r"e:\dbdb\bdbenv", Environment.OpenFlag.Create | Environment.OpenFlag.MemoryPool | Environment.OpenFlag.Concurrent | Environment.OpenFlag.Thread, 0);
	env.set_data_dir(r"e:\dbdb\bdb");

	Database db = new Database(env);
	db.open(null, r"3.db", null, DBType.Hash, Database.OpenFlag.Create | Database.OpenFlag.Thread, 0666);

	db.close();
}

